package service

import "bc/dao"

type zone struct{}

func (t *zone)Create(d map[string]interface{}) (bool,int) {

	return dao.ZoneD.Create(d)

}
func (t *zone)Delete(w map[string]interface{}) bool {

	b := dao.ZoneD.Delete(w)
	return b

}
func (t *zone)Update(w map[string]interface{},f map[string]interface{}) bool {

	b := dao.ZoneD.Update(w,f)
	return b

}
func (t *zone)UpdateState(w map[string]interface{},f map[string]interface{}) bool {
	return dao.ZoneD.UpdateState(w,f)
}
func (t *zone)Find(w map[string]interface{},page int,pageSize int) ([]*dao.Zone,int,error){
	return dao.ZoneD.Find(w,page,pageSize)
}
func (t *zone)First(zone_uuid string)(error, *dao.Zone){
	return dao.ZoneD.First(zone_uuid)
}

var Zone = &zone{}
